package com.luo.mapper;

import com.luo.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
     List<User> selectUserList(@Param("username") String username,
                                @Param("phone") String phone,
                                @Param("departmentId") String departmentId,
                                @Param("index") int index,
                               @Param("limit") int limit,
                               @Param("roleId") String roleId);

    void insert( User user);
    void delete(Integer id);
    void update(User user);

    List<User> selectUsernames();

}
